package com.mawendaxiong.blogprovider.blogType.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mawendaxiong.blogprovider.blogType.entity.BlogType;
import com.mawendaxiong.blogprovider.blogType.mapper.BlogTypeMapper;
import com.mawendaxiong.blogprovider.blogType.service.BlogTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author mawendaxiong
 * @since 2020-06-23
 */
@Service
public class BlogTypeServiceImpl extends ServiceImpl<BlogTypeMapper, BlogType> implements BlogTypeService {
    @Autowired
    private BlogTypeMapper mapper;

    @Override
    public List<BlogType> getAllType() {
        return mapper.getAllType();
    }

    @Override
    public int updateBlogType(BlogType blogType) {
        return mapper.updateBlogType(blogType);
    }
}
